import common from "../common";
import constants from "../constants";

const BaseAssistApi = {
    findBaseAssistTypes: (data, success, error) => {
        return common.requestData(constants.API_FindBaseAssistTypes, data, success, error);
    },
    saveBaseAssistType: (data, success, error) => {
        return common.requestData(constants.API_SaveBaseAssistType, data, success, error);
    },
    deleteBaseAssistType: (data, success, error) => {
        return common.requestData(constants.API_DeleteBaseAssistType, data, success, error);
    },

    findBaseAssistDatas: (data, success, error) => {
        return common.requestData(constants.API_FindBaseAssistDatas, data, success, error);
    },
    saveBaseAssistData: (data, success, error) => {
        return common.requestData(constants.API_SaveBaseAssistData, data, success, error);
    },
    deleteBaseAssistData: (data, success, error) => {
        return common.requestData(constants.API_DeleteBaseAssistData, data, success, error);
    },
    batchDeleteBaseAssistData: (data, success, error) => {
        return common.requestData(constants.API_BatchDeleteBaseAssistData, data, success, error);
    },
    //根据多类别名称搜索对应的辅助数据列表
    findBaseAssistDatasFromTypesNameList: (data, success, error) => {
        return common.requestData(constants.API_FindBaseAssistDatasFromTypesNameList, data, success, error);
    },
};

export default BaseAssistApi;
